import request from '@/utils/request'

const corpid = 'wwd7a63ec9e4e28872'

//获取微信部门树
export function getWxDeptTree () {
  return request({
    url: '/qyweixin/dept/deptTree?corpid='+corpid,
    method: 'get'
  })
}

//同步微信部门树
export function syncWxDepeData () {
  return request({
    url: '/qyweixin/dept/syncDeptData?corpid='+corpid,
    method: 'get'
  })
}

export function syncUserData (deptId) {
  return request({
    url: `/qyweixin/dept/syncUserData/${deptId}?corpid=${corpid}`,
    method: 'get'
  })
}

